/**
 *
 */
package br.com.werp.regras.almoxarifado.visao.decorador;

import java.util.HashMap;
import java.util.Map;

import org.displaytag.decorator.TableDecorator;

import br.com.werp.regras.geral.util.Html;
import br.com.werp.regras.geral.vos.tabelas.Mercadoria;


/**
 * @author marcos
 *
 */
public class Mercadorias extends TableDecorator {
    public String getMerc_descricao() {
        Mercadoria mercadoria = (Mercadoria) getCurrentRowObject();

        Map map = new HashMap();
        map.put("merc_id", String.valueOf(mercadoria.getMerc_id()));
        map.put("carregar_action", "");

        return Html.href("../mercadoria/CadastrarMercadoriaForm.do", map) +
        mercadoria.getMerc_descricao() + "</a>";
    }
}
